#pragma once
#include "afxwin.h"
#include "MyDlg.h"
#include "DD_ImageCap.h"
#include "DD_PLCCtrl.h"
#include "DD_RayCtrl.h"
#include "DD_ImgSysCfg.h"

// CDlgSysHardCfg dialog

class CDlgSysHardCfg : public CMyDlg
{
	DECLARE_DYNAMIC(CDlgSysHardCfg)

public:
	CDlgSysHardCfg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgSysHardCfg();
	zkCapDevDesc	m_xCapDevDesc;
	zkComCfg		m_xLPCCom ;
	zkComCfg		m_xRayCom ;
// Dialog Data
	enum { IDD = IDD_Sys_HardCfg };

public:
	void LoadHardCfg();

public:
	void OnApply();

public:
	CComboBox m_cbPLCCtrlName;
	CComboBox m_cbRayCtrlName;
	CComboBox m_cbDeviceName;

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButtonMoreSet();
	
	afx_msg void OnCbnSelchangeComboMovectrlName();
	afx_msg void OnEnChangeEditMovectrlMachineCode();
	afx_msg void OnEnChangeEditMovectrlRegisterCode();
	afx_msg void OnCbnSelchangeComboXrayName();
	afx_msg void OnEnChangeEditXrayMachineCode();
	afx_msg void OnEnChangeEditXrayRegisterCode();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnBnClickedButtonCapSetting();
	afx_msg void OnCbnSelchangeComboCapdevName();
	afx_msg void OnBnClickedButtonMovSetting();
};
